package com.kongjs.application.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * <p>
 * 
 * </p>
 *
 * @author kongjs.com
 * @since 2025-04-20
 */
@Getter
@Setter
@ToString
@TableName("links")
@Entity
@Table(name = "links")
public class Links implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @TableId(value = "link_id", type = IdType.AUTO)
    private Long linkId;

    @TableField("link_url")
    private String linkUrl;

    @TableField("link_name")
    private String linkName;

    @TableField("link_image")
    private String linkImage;

    @TableField("link_target")
    private String linkTarget;

    @TableField("link_description")
    private String linkDescription;

    @TableField("link_visible")
    private String linkVisible;

    @TableField("link_owner")
    private Long linkOwner;

    @TableField("link_rating")
    private Integer linkRating;

    @TableField("link_updated")
    private LocalDateTime linkUpdated;

    @TableField("link_rel")
    private String linkRel;

    @TableField("link_notes")
    private String linkNotes;

    @TableField("link_rss")
    private String linkRss;
}
